Kanzi 3.9.10
kanzi::BindingRuntimeHandle Class Reference

Handler for binding runtimes. More...

#include <kanzi/core.ui/binding/binding_runtime_handle.hpp>

Public Member Functions

 BindingRuntimeHandle ()=default
 Default constructor.
 
 BindingRuntimeHandle (AbstractBindingRuntimeSharedPtr binding)
 Constructor.
 
AbstractBindingRuntimeSharedPtr getBinding () const
 Gets the shared pointer of a runtime binding.
 
 operator bool () const
 Returns whether the binding runtime is still valid.
 
AbstractBindingRuntimeoperator-> () const
 Accesses binding runtime functions.
 
void reset ()
 Resets the binding runtime.
 
long use_count () const
 

Protected Attributes

AbstractBindingRuntimeWeakPtr m_binding
 Weak reference to the binding runtime.
 

Detailed Description

Handler for binding runtimes.

This handler contains a weak pointer m_binding that does not take an ownership of the binding runtime or prevent the destruction of the binding.

See also
BindingHostConceptImpl
Since
Kanzi 3.9.7

Constructor & Destructor Documentation

◆ BindingRuntimeHandle() [1/2]

kanzi::BindingRuntimeHandle::BindingRuntimeHandle ( )
explicitdefault

Default constructor.

◆ BindingRuntimeHandle() [2/2]

kanzi::BindingRuntimeHandle::BindingRuntimeHandle ( AbstractBindingRuntimeSharedPtr binding)
inlineexplicit

Constructor.

Parameters
bindingThe created binding runtime.

Member Function Documentation

◆ operator->()

AbstractBindingRuntime * kanzi::BindingRuntimeHandle::operator-> ( ) const
inline

Accesses binding runtime functions.

Returns
Pointer to binding runtime.

◆ operator bool()

kanzi::BindingRuntimeHandle::operator bool ( ) const
inline

Returns whether the binding runtime is still valid.

Returns
Whether the binding runtime is still valid.

◆ getBinding()

AbstractBindingRuntimeSharedPtr kanzi::BindingRuntimeHandle::getBinding ( ) const
inline

Gets the shared pointer of a runtime binding.

Returns
Shared pointer from the weak pointer.

◆ reset()

void kanzi::BindingRuntimeHandle::reset ( )
inline

Resets the binding runtime.

◆ use_count()

long kanzi::BindingRuntimeHandle::use_count ( ) const
inline
Returns
Number of shared pointers pointing to binding.

Member Data Documentation

◆ m_binding

AbstractBindingRuntimeWeakPtr kanzi::BindingRuntimeHandle::m_binding
protected

Weak reference to the binding runtime.


The documentation for this class was generated from the following file: